import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { RouterModule } from '@angular/router';

import { PersonSharedModule } from '../../shared';
import {
    DepartmentPersonService,
    DepartmentPersonPopupService,
    DepartmentPersonComponent,
    DepartmentPersonDetailComponent,
    DepartmentPersonDialogComponent,
    DepartmentPersonPopupComponent,
    DepartmentPersonDeletePopupComponent,
    DepartmentPersonDeleteDialogComponent,
    departmentRoute,
    departmentPopupRoute,
    DepartmentPersonResolvePagingParams,
} from './';

const ENTITY_STATES = [
    ...departmentRoute,
    ...departmentPopupRoute,
];

@NgModule({
    imports: [
        PersonSharedModule,
        RouterModule.forRoot(ENTITY_STATES, { useHash: true })
    ],
    declarations: [
        DepartmentPersonComponent,
        DepartmentPersonDetailComponent,
        DepartmentPersonDialogComponent,
        DepartmentPersonDeleteDialogComponent,
        DepartmentPersonPopupComponent,
        DepartmentPersonDeletePopupComponent,
    ],
    entryComponents: [
        DepartmentPersonComponent,
        DepartmentPersonDialogComponent,
        DepartmentPersonPopupComponent,
        DepartmentPersonDeleteDialogComponent,
        DepartmentPersonDeletePopupComponent,
    ],
    providers: [
        DepartmentPersonService,
        DepartmentPersonPopupService,
        DepartmentPersonResolvePagingParams,
    ],
    schemas: [CUSTOM_ELEMENTS_SCHEMA]
})
export class PersonDepartmentPersonModule {}
